<?php

namespace App\Model;

class FoodsModel extends BaseModel{

    protected $table = 'foods';

    const STATUS_1 = 1;
    const STATUS_2 = 2;

    const STATUS_TEXT = [
        self::STATUS_1 => '<span class="el-tag">上架</span>',
        self::STATUS_2 => '<span class="el-tag el-tag--danger">下架</span>',
    ];

    protected $fillable = [
        'id','title','name','money','describe','shopid','thumb','status','created_at'
    ];



}
